//
//  Color.swift
//  Crypto
//
//  Created by DaleGuo on 2023/9/20.
//

import Foundation
import SwiftUI

// 扩展SwiftUI的Color
// 设计App的第一步  Assets app主题颜色预设
extension Color {
    static let theme = ColorTheme()
    // 之后用Color.theme.~~调用
    
    static let launch = LaunchTheme()
}

struct ColorTheme {
    let accent = Color("AccentColor")
    let background = Color("BackgroundColor")
    let green = Color("GreenColor")
    let red = Color("RedColor")
    let secondaryText = Color("SecondaryTextColor")
}

struct LaunchTheme {
    let accent = Color("LaunchAccentColor")
    let background = Color("LaunchBackgroundColor")
}
